<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    img {
      position: absolute;
      width: 150px;
      height: 200px;
    }
  </style>
</head>
<body>
  <img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg105.job1001.com%2Fupload%2Falbum%2F2014-05-16%2F1400251022_Vykn8Hj5.jpg&refer=http%3A%2F%2Fimg105.job1001.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1632732759&t=ab59adaaf75359a343cbfb3ae5b565da" alt="">

  <script>
    var img = document.querySelector('img')

    document.onmousemove = function(e)  {
      img.style.left = e.pageX - 75 + 'px'
      img.style.top = e.pageY - 100 + 'px'
    }
  </script>
</body>
</html>